package com.flyco.modules.fenxiao.mapper;

import java.util.List;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.SqlParser;
import org.apache.ibatis.annotations.Param;
import com.flyco.modules.fenxiao.entity.DistAccount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * @Description: 分销员帐号
 * @Author: flyco
 * @Date:   2020-07-07
 * @Version: V1.0
 */
@Repository
@DS("fenxiao")
public interface DistAccountMapper extends BaseMapper<DistAccount> {
    @SqlParser(filter=true)
    Integer saveDistAccountByAdmin(DistAccount distAccount);

    @SqlParser(filter=true)
    Boolean modifyDistAccountByAdmin(DistAccount distAccount);

    @SqlParser(filter=true)
    DistAccount getDistAccountByAdmin(String id);

}
